package com.aspose.cells;

class zso extends zi {
   private int f;
   private int g;

   zso(zafv var1, int var2, int var3, int var4, int var5, int var6) {
      super(var1, var2, var3, var4, var5);
      this.f = var6;
      this.b();
   }

   public int a() {
      this.g += this.f;
      return this.g > this.e ? -this.g - 1 : this.g;
   }

   public void b(int var1) {
      if (var1 <= this.a) {
         this.g = this.d - this.f;
      } else if (var1 == this.b) {
         this.g = this.e - this.f;
      } else if (this.b > -1 && var1 > this.b) {
         this.g = this.e;
      } else {
         this.g = this.c.a(var1, this.d, this.e);
         if (this.g < 0) {
            this.g = -this.g - 1;
         }

         this.g -= this.f;
      }

   }

   public void b() {
      this.g = this.d - this.f;
   }

   protected void a(int var1) {
      if (var1 < 0) {
         this.g = -var1 - 1 - this.f;
      } else {
         this.g = var1;
      }

   }
}
